QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++14 utf8_source

win32-msvc* {
    # 强制 UTF-8 编码
    QMAKE_CXXFLAGS += /utf-8
    QMAKE_CFLAGS += /utf-8

    # 忽略编码相关警告
    QMAKE_CXXFLAGS += /wd4828    # 无效 UTF-8 字符
    QMAKE_CXXFLAGS += /wd4819    # 代码页警告

    # 其他常用设置
    QMAKE_CXXFLAGS += /W3        # 警告等级3
}

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

INCLUDEPATH += $$PWD/include

LIBS += -L$$PWD/lib -lBlobAnalysisPro

SOURCES += \
    src/abstractthread.cpp \
    src/counterthread.cpp \
    src/loaderthread.cpp \
    src/main.cpp \
    src/mainwindow.cpp \
    src/processthread.cpp \
    src/safequeue.cpp \
    src/threadmanager.cpp

HEADERS += \
    src/abstractthread.h \
    src/counterthread.h \
    src/loaderthread.h \
    src/mainwindow.h \
    src/processthread.h \
    src/safequeue.h \
    src/threadmanager.h

FORMS += \
    src/mainwindow.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    resources/resource.qrc

RC_ICONS = resources/icons/logo.ico
